/**
 * 表单类型(客户下发,自行创建) enum
 */
export enum FormTypeEnum {
  REQUEST = 'REQUEST',
  SEND = 'SEND'
}

/**
 * 表单类型(客户下发,自行创建) Map
 */
export const FormTypeMap = {
  REQUEST: '主机厂发出请求',
  SEND: '供应商主动提交'
};

export const FormTypeOptions = [
  {
    label: FormTypeMap.REQUEST,
    value: FormTypeEnum.REQUEST
  },
  {
    label: FormTypeMap.SEND,
    value: FormTypeEnum.SEND
  }
];
/**
 * 表单类型 在工作台中显示(客户下发,自行创建) Map
 */
export const FormTypeWorkbenchMap = {
  REQUEST: '客户下发数据表',
  SEND: '自行创建数据表'
};

/**
 * 反馈类型(场地数据,认证报告) enum
 */
export enum FeedbackTypeEnum {
  MANUFACTURE = 'MANUFACTURE',
  CERTIFICATION_REPORT = 'CERTIFICATION_REPORT'
}

/**
 * 反馈类型(场地数据,认证报告) Map
 */
export const FeedbackTypeMap = {
  MANUFACTURE: '场地数据',
  CERTIFICATION_REPORT: '认证报告'
};

/**
 * 反馈类型(场地数据,认证报告) option
 */
export const FeedbackTypeOptions = [
  {
    label: FeedbackTypeMap.MANUFACTURE,
    value: FeedbackTypeEnum.MANUFACTURE,
    desc: '填报项: 物料清单、生产能耗等',
    icon: 'c-xian-tianbaopeizhi'
  },
  {
    label: FeedbackTypeMap.CERTIFICATION_REPORT,
    value: FeedbackTypeEnum.CERTIFICATION_REPORT,
    desc: '填报项: 碳足迹报告或LCA报告',
    icon: 'c-xian-putongwenjian'
  }
];

/**
 * 供应商反馈清单/供应商数据集 状态 enum
 */
export enum SupplierFormStatusEnum {
  UN_SUBMITTED = 'UN_SUBMITTED',
  UN_FEEDBACK = 'UN_FEEDBACK',
  AUDIT = 'AUDIT',
  PASS = 'PASS',
  REJECT = 'REJECT',
  CLOSED = 'CLOSED'
}

/**
 * 供应商数据集 状态 Map
 */
export const SupplierFormStatusMap = {
  UN_SUBMITTED: '待提交',
  UN_FEEDBACK: '待反馈',
  AUDIT: '待审核',
  PASS: '审核通过',
  REJECT: '已驳回',
  CLOSED: '已关闭'
};

/**
 * 供应商数据集 状态 Option
 */
export const SupplierFormStatusOptions = [
  // {
  //   label: SupplierFormStatusMap.UN_SUBMITTED,
  //   value: SupplierFormStatusEnum.UN_SUBMITTED
  // },
  {
    label: SupplierFormStatusMap.UN_FEEDBACK,
    value: SupplierFormStatusEnum.UN_FEEDBACK
  },
  {
    label: SupplierFormStatusMap.AUDIT,
    value: SupplierFormStatusEnum.AUDIT
  },
  {
    label: SupplierFormStatusMap.REJECT,
    value: SupplierFormStatusEnum.REJECT
  },
  {
    label: SupplierFormStatusMap.PASS,
    value: SupplierFormStatusEnum.PASS
  }
  // {
  //   label: SupplierFormStatusMap.CLOSED,
  //   value: SupplierFormStatusEnum.CLOSED
  // }
];

/**
 * 供应商反馈清单 状态 Map(和供应商数据集一样，仅中文不一样)
 */
export const SupplierFormStatusSelfMap = {
  UN_SUBMITTED: '待提交',
  UN_FEEDBACK: '待提交',
  AUDIT: '审核中',
  PASS: '已完成',
  REJECT: '被驳回',
  CLOSED: '已关闭'
};

/**
 * 供应商反馈清单 状态 Option
 */
export const SupplierFormStatusSelfOptions = [
  {
    label: SupplierFormStatusSelfMap.UN_SUBMITTED,
    value: SupplierFormStatusEnum.UN_SUBMITTED
  },
  {
    label: SupplierFormStatusSelfMap.UN_FEEDBACK,
    value: SupplierFormStatusEnum.UN_FEEDBACK
  },
  {
    label: SupplierFormStatusSelfMap.AUDIT,
    value: SupplierFormStatusEnum.AUDIT
  },
  {
    label: SupplierFormStatusSelfMap.PASS,
    value: SupplierFormStatusEnum.PASS
  },
  {
    label: SupplierFormStatusSelfMap.REJECT,
    value: SupplierFormStatusEnum.REJECT
  },
  {
    label: SupplierFormStatusSelfMap.CLOSED,
    value: SupplierFormStatusEnum.CLOSED
  }
];
